package socket.BIO_NIO_AIO.aio;

import socket.BIO_NIO_AIO.aio.server.AsyncTimeServerHandler;

public class TimeServer {
    private static int port = 8081;
    public static void main(String[] args) {
        if(args != null && args.length > 0) {
            try {
                port = Integer.parseInt(args[0]);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }

        AsyncTimeServerHandler serverHandler = new AsyncTimeServerHandler(port);
        new Thread(serverHandler).start();
    }
}
